#include <iostream>
#include "stack.h"

void print(const stack& obj)
{
	if (obj.top == 0) 
	{ 
		std::cout << "(empty)\n";  return; 
	}
     for (int t=0 ; t < obj.top ; t++) 
		 std::cout << obj.s[t] << " ";

     std::cout << "\n";
}

void main()
{
   stack *s = new stack(100);

   print(*s);
   s->push(1);
   print(*s);
   s->push(2);
   print(*s);
   s->push(3);
   print(*s);
   s->push(4);
   print(*s);
   s->pop();
   print(*s);
   s->pop();
   print(*s);
   s->push(10);
   print(*s);
   s->pop();
   print(*s);
   s->pop();
   print(*s);
   s->pop();
   print(*s);
   s->pop();
   print(*s);
   s->pop();
   print(*s);
}